package nbcp

import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.context.support.FileSystemXmlApplicationContext
import org.springframework.context.support.GenericXmlApplicationContext
import org.springframework.test.context.TestPropertySource
import org.springframework.test.context.junit4.SpringRunner
import org.springframework.test.context.web.WebAppConfiguration
import org.springframework.test.web.servlet.MockMvc
import nbcp.base.utils.SpringUtil

/**
 * Created by udi on 17-3-27.
 */


@RunWith(SpringRunner::class)
@WebAppConfiguration
@SpringBootTest(classes = arrayOf(PzxEntityWebApplication::class))
@TestPropertySource(locations = arrayOf("classpath:application-test.yml"))
abstract class TestBase {

    init {
        //ParserConfig.getGlobalInstance().putDeserializer(ObjectId::class.java, ObjectIdDeserializer())
    }
}